﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using Quanlybanhang_pro202.Module;

namespace Quanlybanhang_pro202.Control
{
    class Khachhang_Control
    {
        public DataSet GetAllCustome()
        {
            Khachhang kh = new Khachhang();
            return kh.GetAllCustome();

        }
        public int InsertCustomer(string hoten, string diachi, string sdt)
        {
            Khachhang kh = new Khachhang();
            kh.InsertCustomer(hoten, diachi, sdt);
            return 1;
        }
        public int UpdateCustomer(int ID, string hoten, string diachi, string sdt)
        {
            Khachhang kh = new Khachhang();
            kh.UpdateCustome(ID, hoten, diachi, sdt);
            return 1;

        }
        public int DeleteCustomer(int ID)
        {
            Khachhang kh = new Khachhang();
            kh.DeleteCustome(ID);
            return 1;
        }
    }
}
